<template>
    <div class="main-layout-table">
        <div class="action">
            <slot name="action"></slot>
        </div>
        <div class="table">
            <slot name="table"></slot>
        </div>
        <div class="page">
            <slot name="page"></slot>
        </div>
    </div>
</template>

<script>
export default {
    name: "MainLayoutTable",
};
</script>

<style lang="scss">
.main-layout-table {
    $action-height: 50px;
    $page-height: 50px;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    .action {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: $action-height;
        padding: 0 10px;
        display: flex;
        align-items: center;
    }
    .table {
        position: absolute;
        top: $action-height;
        right: 0;
        left: 0;
        bottom: $page-height;
        padding: 10px;
    }
    .page {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: $page-height;
        padding: 0 10px;
        display: flex;
        align-items: center;
    }
}
</style>
